package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the D_BPTYPE_113 database table.
 * 
 */
@Entity
@Table(name="D_BPTYPE_113")
public class DBptype113 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	private Long bptypeid;

	private String bptypecode;

	private String bptypename;

	private Long bptypesequence;

	private Long isdeleted;

	private Long isexistverifynode;

	private String remark;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	//bi-directional many-to-one association to DBptype113
	@ManyToOne
	@JoinColumn(name="P_BPTYPEID")
	private DBptype113 DBptype113;

	//bi-directional many-to-one association to DBptype113
	@OneToMany(mappedBy="DBptype113")
	private Set<DBptype113> DBptype113s;

	public DBptype113() {
	}

	public Long getBptypeid() {
		return this.bptypeid;
	}

	public void setBptypeid(Long bptypeid) {
		this.bptypeid = bptypeid;
	}

	public String getBptypecode() {
		return this.bptypecode;
	}

	public void setBptypecode(String bptypecode) {
		this.bptypecode = bptypecode;
	}

	public String getBptypename() {
		return this.bptypename;
	}

	public void setBptypename(String bptypename) {
		this.bptypename = bptypename;
	}

	public Long getBptypesequence() {
		return this.bptypesequence;
	}

	public void setBptypesequence(Long bptypesequence) {
		this.bptypesequence = bptypesequence;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getIsexistverifynode() {
		return this.isexistverifynode;
	}

	public void setIsexistverifynode(Long isexistverifynode) {
		this.isexistverifynode = isexistverifynode;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public DBptype113 getDBptype113() {
		return this.DBptype113;
	}

	public void setDBptype113(DBptype113 DBptype113) {
		this.DBptype113 = DBptype113;
	}

	public Set<DBptype113> getDBptype113s() {
		return this.DBptype113s;
	}

	public void setDBptype113s(Set<DBptype113> DBptype113s) {
		this.DBptype113s = DBptype113s;
	}

	public DBptype113 addDBptype113(DBptype113 DBptype113) {
		getDBptype113s().add(DBptype113);
		DBptype113.setDBptype113(this);

		return DBptype113;
	}

	public DBptype113 removeDBptype113(DBptype113 DBptype113) {
		getDBptype113s().remove(DBptype113);
		DBptype113.setDBptype113(null);

		return DBptype113;
	}

}